package com.itheima.controller;

import com.itheima.config.SpringConfig;
import com.itheima.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class UserApp {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        UserService us = (UserService) ctx.getBean("userService");
        us.save();
    }
}
